home *** CD-ROM | disk | FTP | other *** search
/ Power Hacker 2003 / Power_Hacker_2003.iso / Exploit and vulnerability / w00w00 / exploits / tests / nis / proto / include / nis_callback.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-08-13  |  2.2 KB  |  78 lines

  1. /*
  2.  * Please do not edit this file.
  3.  * It was generated using rpcgen.
  4.  */
  5.  
  6. #ifndef _NIS_CALLBACK_H_RPCGEN
  7. #define _NIS_CALLBACK_H_RPCGEN
  8.  
  9. #include <rpc/rpc.h>
  10.  
  11. #pragma ident    "@(#)nis_callback.x    1.4    92/07/14 SMI"
  12. #include <rpcsvc/nis.h>
  13.  
  14. typedef nis_object *obj_p;
  15. #ifdef __cplusplus 
  16. extern "C" bool_t xdr_obj_p(XDR *, obj_p*);
  17. #elif __STDC__ 
  18. extern  bool_t xdr_obj_p(XDR *, obj_p*);
  19. #else /* Old Style C */ 
  20. bool_t xdr_obj_p();
  21. #endif /* Old Style C */ 
  22.  
  23.  
  24. struct cback_data {
  25.     struct {
  26.         u_int entries_len;
  27.         obj_p *entries_val;
  28.     } entries;
  29. };
  30. typedef struct cback_data cback_data;
  31. #ifdef __cplusplus 
  32. extern "C" bool_t xdr_cback_data(XDR *, cback_data*);
  33. #elif __STDC__ 
  34. extern  bool_t xdr_cback_data(XDR *, cback_data*);
  35. #else /* Old Style C */ 
  36. bool_t xdr_cback_data();
  37. #endif /* Old Style C */ 
  38.  
  39.  
  40. #define CB_PROG ((u_long)100302)
  41. #define CB_VERS ((u_long)1)
  42.  
  43. #ifdef __cplusplus
  44. #define CBPROC_RECEIVE ((u_long)1)
  45. extern "C" bool_t * cbproc_receive_1(cback_data *, CLIENT *);
  46. extern "C" bool_t * cbproc_receive_1_svc(cback_data *, struct svc_req *);
  47. #define CBPROC_FINISH ((u_long)2)
  48. extern "C" void * cbproc_finish_1(void *, CLIENT *);
  49. extern "C" void * cbproc_finish_1_svc(void *, struct svc_req *);
  50. #define CBPROC_ERROR ((u_long)3)
  51. extern "C" void * cbproc_error_1(nis_error *, CLIENT *);
  52. extern "C" void * cbproc_error_1_svc(nis_error *, struct svc_req *);
  53.  
  54. #elif __STDC__
  55. #define CBPROC_RECEIVE ((u_long)1)
  56. extern  bool_t * cbproc_receive_1(cback_data *, CLIENT *);
  57. extern  bool_t * cbproc_receive_1_svc(cback_data *, struct svc_req *);
  58. #define CBPROC_FINISH ((u_long)2)
  59. extern  void * cbproc_finish_1(void *, CLIENT *);
  60. extern  void * cbproc_finish_1_svc(void *, struct svc_req *);
  61. #define CBPROC_ERROR ((u_long)3)
  62. extern  void * cbproc_error_1(nis_error *, CLIENT *);
  63. extern  void * cbproc_error_1_svc(nis_error *, struct svc_req *);
  64.  
  65. #else /* Old Style C */ 
  66. #define CBPROC_RECEIVE ((u_long)1)
  67. extern  bool_t * cbproc_receive_1();
  68. extern  bool_t * cbproc_receive_1_svc();
  69. #define CBPROC_FINISH ((u_long)2)
  70. extern  void * cbproc_finish_1();
  71. extern  void * cbproc_finish_1_svc();
  72. #define CBPROC_ERROR ((u_long)3)
  73. extern  void * cbproc_error_1();
  74. extern  void * cbproc_error_1_svc();
  75. #endif /* Old Style C */ 
  76.  
  77. #endif /* !_NIS_CALLBACK_H_RPCGEN */
  78.